package com.ygq.seckill.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ygq.seckill.entity.User;
import com.ygq.seckill.vo.LoginVo;
import com.ygq.seckill.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 姚国庆
 * @since 2024-06-03
 */
public interface UserService extends IService<User> {

    //完成用户登录的校验
    RespBean doLogin(LoginVo loginVo, HttpServletRequest Request, HttpServletResponse response);

    //根据cookie-ticket获取user
    User getUserByCookie(String userTicket,
                         HttpServletRequest request,
                         HttpServletResponse response);

    //更改密码
    RespBean updatePassword(String userTicket, String password,
                             HttpServletRequest request,
                            HttpServletResponse response);


}
